package com.weiiew.backend;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PreDestroy;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;

@SpringBootApplication
public class BackendApplication {

    public static void main(String[] args) throws UnsupportedEncodingException {
        System.setProperty("java.awt.headless", "false");
        System.setOut(new PrintStream(System.out, true, "UTF-8"));
//        System.out.println(args[0]);
        SpringApplication.run(BackendApplication.class, args);
    }
    @PreDestroy
    public void destroy() {
        System.setProperty("java.awt.headless", "true");
    }
}
